<div class="ad_mid">
<{foreach from = $ad_mid item = i}>
<{$i.code}>
<{/foreach}>
</div>
